import socket
import sys 
sys.path.append(".") 
from func import *

# get ip address
hostname = socket.getfqdn(socket.gethostname())
ip = socket.gethostbyname(hostname)
print("Your IP: " + ip)

# check if the network is office network
is_at_office = ip.find("165.204")

remove_file(r"c:\temp\New folder2\cc.txt")
remove_dir(r"c:\temp\New folder")

if is_at_office >= 0 :
    load_office_profile()
else :
    load_home_profile()

